package HealthCard;

import HealthCard.Helper.InitCommonIn;
import HealthCard.Helper.InitHealthCardServerImpl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.tencent.healthcard.impl.HealthCardServerImpl;

public class getHealthCardByQRCode {

    public static void main(String[] args) {

        HealthCardServerImpl test = InitHealthCardServerImpl.getHealthCard();
        //构造请求参数req


        String qrCodeText = "71BDD379202D8BB2756E8F00F50017B3C4205DD843B83198EC1901675DDD8CA8:1";
        //调用接口
        JSONObject healthCardInfoRsp = test.getHealthCardByQRCode(InitCommonIn.getCommonIn(), qrCodeText);
        //打印响应
        System.out.println(JSON.toJSONString(healthCardInfoRsp));
    }


}